<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlterLogSiteScoreTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('log_site_score',function(Blueprint $table){
            $table->integer('status')->default(1)->comment('状态，-1：未知，0：失败，1：成功，2：注销')->after('op');
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('log_site_score', function (Blueprint $table) {
            $table->dropColumn('status');
        });
    }
}
